package com.shadt.sms.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 短信记录
 * 
 * @author SongR
 *
 */
@Entity
@Table(name = "sys_sms_record")
public class SysSmsRecord implements Serializable {
	private static final long serialVersionUID = 8407974811051088893L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "record_id")
	private Long id;// 编号
	@Column(name = "record_sendtime")
	private Date sendtime;// 发送时间
	@Column(name = "record_phone")
	private String phone;// 电话号码
	@Column(name = "record_code")
	private String code;// 验证码
	@Column(name = "record_status")
	private int status;// 状态(-1、不可用  0、已验证  1、等待验证 )

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getSendtime() {
		return sendtime;
	}

	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
